home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / ROMDefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  5.8 KB  |  160 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ROMDefs.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __ROMDEFS__
  18. #define __ROMDEFS__
  19.  
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25. #if GENERATINGPOWERPC
  26. #pragma options align=mac68k
  27. #endif
  28.  
  29. #ifdef __CFM68K__
  30. #pragma lib_export on
  31. #endif
  32.  
  33.  
  34. enum {
  35.     appleFormat                    = 1,                            /*Format of Declaration Data (IEEE will assign real value)*/
  36.     romRevision                    = 1,                            /*Revision of Declaration Data Format*/
  37.     testPattern                    = 1519594439,                    /*FHeader long word test pattern*/
  38.     sCodeRev                    = 2,                            /*Revision of code (For sExec)*/
  39.     sCPU68000                    = 1,                            /*CPU type = 68000*/
  40.     sCPU68020                    = 2,                            /*CPU type = 68020*/
  41.     sCPU68030                    = 3,                            /*CPU type = 68030*/
  42.     sCPU68040                    = 4,                            /*CPU type = 68040*/
  43.     sMacOS68000                    = 1,                            /*Mac OS, CPU type = 68000*/
  44.     sMacOS68020                    = 2,                            /*Mac OS, CPU type = 68020*/
  45.     sMacOS68030                    = 3,                            /*Mac OS, CPU type = 68030*/
  46.     sMacOS68040                    = 4,                            /*Mac OS, CPU type = 68040*/
  47.     board                        = 0,                            /*Board sResource - Required on all boards*/
  48.     displayVideoAppleTFB        = 16843009,                        /*Video with Apple parameters for TFB card.*/
  49.     displayVideoAppleGM            = 16843010,                        /*Video with Apple parameters for GM card.*/
  50.     networkEtherNetApple3Com    = 33620225,                        /*Ethernet with apple parameters for 3-Comm card.*/
  51.     testSimpleAppleAny            = -2147417856,                    /*A simple test sResource.*/
  52.     endOfList                    = 255,                            /*End of list*/
  53.     defaultTO                    = 100                            /*100 retries.*/
  54. };
  55.  
  56. enum {
  57.     sRsrcType                    = 1,                            /*Type of sResource*/
  58.     sRsrcName                    = 2,                            /*Name of sResource*/
  59.     sRsrcIcon                    = 3,                            /*Icon*/
  60.     sRsrcDrvrDir                = 4,                            /*Driver directory*/
  61.     sRsrcLoadDir                = 5,                            /*Load directory*/
  62.     sRsrcBootRec                = 6,                            /*sBoot record*/
  63.     sRsrcFlags                    = 7,                            /*sResource Flags*/
  64.     sRsrcHWDevId                = 8,                            /*Hardware Device Id*/
  65.     minorBaseOS                    = 10,                            /*Offset to base of sResource in minor space.*/
  66.     minorLength                    = 11,                            /*Length of sResource’s address space in standard slot space.*/
  67.     majorBaseOS                    = 12,                            /*Offset to base of sResource in Major space.*/
  68.     majorLength                    = 13,                            /*Length of sResource in super slot space.*/
  69.     sRsrccicn                    = 15,                            /*Color icon*/
  70.     sRsrcicl8                    = 16,                            /*8-bit (indexed) icon*/
  71.     sRsrcicl4                    = 17,                            /*4-bit (indexed) icon*/
  72.     sDRVRDir                    = 16,                            /*sDriver directory*/
  73.     sGammaDir                    = 64,                            /*sGamma directory*/
  74.     sRsrcVidNames                = 65,                            /*Video mode name directory*/
  75.     sRsrcDock                    = 80,                            /*spID for Docking Handlers*/
  76.     sDiagRec                    = 85,                            /*spID for board diagnostics*/
  77.     sVidAuxParams                = 123,                            /*more video info for Display Manager -- timing information*/
  78.     sDebugger                    = 124,                            /*DatLstEntry for debuggers indicating video anamolies*/
  79.     sVidAttributes                = 125,                            /*video attributes data field (optional,word)*/
  80.     fLCDScreen                    = 0,                            /* bit 0 - when set is LCD, else is CRT*/
  81.     fBuiltInDisplay                = 1,                            /*      1 - when set is built-in (in the box) display, else not*/
  82.     fDefaultColor                = 2,                            /*      2 - when set display prefers multi-bit color, else gray*/
  83.     fActiveBlack                = 3,                            /*      3 - when set black on display must be written, else display is naturally black*/
  84.     fBuiltInDetach                = 4,                            /*      4 - when set is built-in (in the box), but detaches*/
  85.     sVidParmDir                    = 126,
  86.     sSuperDir                    = 254
  87. };
  88.  
  89. /* =======================================================================    */
  90. /* sResource types                                                            */
  91. /* =======================================================================    */
  92. enum {
  93.     catBoard                    = 1,                            /*Category for board types.*/
  94.     catTest                        = 2,                            /*Category for test types -- not used much.*/
  95.     catDisplay                    = 3,                            /*Category for display (video) cards.*/
  96.     catNetwork                    = 4,                            /*Category for Networking cards.*/
  97.     catCPU                        = 0x000A,
  98.     catProto                    = 0x0011,
  99.     catDock                        = 0x0020,
  100. /*<Type>*/
  101.     typeBoard                    = 0x0000,
  102.     typeApple                    = 0x0001,
  103.     typeVideo                    = 0x0001,
  104.     typeEtherNet                = 0x0001,
  105.     typeStation                    = 0x0001,
  106.     typeDesk                    = 0x0002,
  107.     typeDebugger                = 0x0100,
  108.     type68000                    = 0x0002,
  109.     type68020                    = 0x0003,
  110.     type68030                    = 0x0004,
  111.     type68040                    = 0x0005,
  112.     typeAppleII                    = 0x0015,
  113. /*Driver Interface : <id.SW>*/
  114.     drSwMacCPU                    = 0,
  115.     drSwAppleIIe                = 0x0001,
  116.     drSwApple                    = 1,                            /*To ask for or define an Apple-compatible SW device.*/
  117.     drSwMacsBug                    = 0x0104,
  118. /*Driver Interface : <id.SW><id.HW>*/
  119.     drHwTFB                        = 1,                            /*HW ID for the TFB (original Mac II) video card.*/
  120.     drHw3Com                    = 1,                            /*HW ID for the Apple EtherTalk card.*/
  121.     drHwBSC                        = 3,
  122.     drHwGemini                    = 1,
  123.     drHwDeskBar                    = 1,
  124.     drHwBootBug                    = 0x0100,
  125.     boardId                        = 32,                            /*Board Id*/
  126.     pRAMInitData                = 33,                            /*sPRAM init data*/
  127.     primaryInit                    = 34,                            /*Primary init record*/
  128.     timeOutConst                = 35,                            /*Time out constant*/
  129.     vendorInfo                    = 36,                            /*Vendor information List. See Vendor List, below*/
  130.     boardFlags                    = 37,                            /*Board Flags*/
  131.     secondaryInit                = 38,                            /*Secondary init record/code*/
  132.     vendorId                    = 1,                            /*Vendor Id*/
  133.     serialNum                    = 2,                            /*Serial number*/
  134.     revLevel                    = 3,                            /*Revision level*/
  135.     partNum                        = 4,                            /*Part number*/
  136.     date                        = 5                                /*Last revision date of the card*/
  137. };
  138.  
  139. enum {
  140.     testByte                    = 32,                            /*Test byte.*/
  141.     testWord                    = 33,                            /*0021*/
  142.     testLong                    = 34,                            /*Test Long.*/
  143.     testString                    = 35                            /*Test String.*/
  144. };
  145.  
  146.  
  147. #ifdef __CFM68K__
  148. #pragma lib_export off
  149. #endif
  150.  
  151. #if GENERATINGPOWERPC
  152. #pragma options align=reset
  153. #endif
  154.  
  155. #ifdef __cplusplus
  156. }
  157. #endif
  158.  
  159. #endif /* __ROMDEFS__ */
  160.